package com.book.bookshop.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.book.bookshop.entity.Fenlei;
import com.book.bookshop.mapper.FenleiMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/*
    2022/5/5 12:45
    @author ZW
    Project Name:book-shop
     
*/
@Service
public class FenleiService extends ServiceImpl<FenleiMapper, Fenlei> {

    @Autowired
    private FenleiMapper fenLeiMapper;

    public List<Fenlei> selectList(){
         return  fenLeiMapper.selectList(new QueryWrapper<>());

    }
}
